package edu.wata.service;

import edu.wata.dao.BuyTicketDao;
import edu.wata.domain.Order;
import edu.wata.domain.User;

public class UserService {
	private BuyTicketDao btd = new BuyTicketDao();
	User user = null;

	public User selectidNumber(String idNumber) {
		user = btd.selectidNumber(idNumber);
		return user;
	}

	public int useradd(User user) {
		int rowNum = btd.addUser(user);
		return rowNum;
	}

	public int orderadd(Order order) {
		int rowNum = btd.buyticket(order);
		return rowNum;
	}
}
